package com.mioto.ld.communication.mqtt.protocol.model.server;

import cn.hutool.json.JSONUtil;
import com.mioto.ld.communication.mqtt.protocol.model.PType;
import com.mioto.ld.communication.mqtt.protocol.model.Payload;
import lombok.Getter;
import lombok.Setter;

/**
 * @author mioto-qinxj
 * @date 2024/5/23
 * @desc
 */
@Getter
@Setter
public class TimedTaskDelPayload extends Payload {
    /**
     * 属性设置类型
     */
    private String ptype = PType.SERVER_TIMED_SHUTDOWN_DEL;
    /**
     * 任务唯一标识
     */
    private String no;

    @Override
    public String toJsonStr() {
        return JSONUtil.createObj().set("ptype",ptype).set("no",no).toString();
    }
}
